<template>
  <section>
    <template v-for="(item, index) in customerNames">
      <span :key="index"> {{ item }}；</span>
    </template>
  </section>
</template>

<script>
export default {
  name: "CombineCustomerNames",
  props: {
    row: Object,
    value: Object,
  },
  computed: {
    combine () {
      return this.value || this.row;
    },
    customerNames () {
      return this.combine?.distinctCustomerName || [];
    },
    firstCustomerName () {
      return this.customerNames?.[0]
    },
    length () {
      return this.customerNames.length;
    }
  }
}
</script>

<style scoped>
::v-deep .el-button--mini.is-circle {
  padding: 0;
}
</style>